<template>
    <el-menu-item
            :index="url"
        >
        <i v-if="icon" :class="icon"></i>
        <span slot="title">{{title}}</span>
        </el-menu-item>
</template>
<script lang="ts">

    import {Vue,Component,Prop} from 'vue-property-decorator'
    import {IPage} from "@/libs/routed";

    @Component({
        name: "AdminSideMenu",
        mounted:()=>{

        }
    })
    export default class AdminSideMenu extends Vue {

        @Prop({
            type:String
        })
        title: String;

        @Prop({
            type:String
        })
        icon: String;

        @Prop({
            type:String
        })
        url:String
    }
</script>